package com.ming.service;

import com.ming.common.Result;
import com.ming.domain.BookRent;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ming.from.BookRentForm;
import com.ming.query.BookRentQuery;

/**
 *@Author:何元才
 *@Desc:
 *@data:2021-04-27 15:23
 */
public interface BookRentService extends IService<BookRent>{

    /**
     * 分页查询借阅记录
     * @param query
     * @return
     */
    Result queryPage(BookRentQuery query);

    /**
     * 图书管理员操作的借阅
     * @param form
     * @return
     */
    Result rent(BookRentForm form);
}
